84% gp-live-export

Code Review | GP Live Export

WordPress plugin GP Live Export scored 84% from 54 tests.

About plugin

  • Plugin page: gp-live-export
  • Plugin version: 0.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Aug 9, 2018
  • Latest release: Sep 11, 2018
  • Number of updates: 15
  • Update frequency: every 2.3 days
  • Top authors: mayukojpn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.09ms] Passed 4 tests

Analyzing server-side resources used by GP Live Export
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.42 ▼1.95
Dashboard /wp-admin3.31 ▲0.0146.73 ▲1.04
Posts /wp-admin/edit.php3.36 ▲0.0144.34 ▼6.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.66 ▼13.09
Media Library /wp-admin/upload.php3.23 ▲0.0134.97 ▲2.66

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by GP Live Export
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.61 ▼0.931.71 ▼0.1342.13 ▼7.77
Dashboard /wp-admin2,225 ▲404.84 ▼0.0096.78 ▼14.6340.18 ▼4.79
Posts /wp-admin/edit.php2,105 ▲192.02 ▲0.0136.41 ▼3.7035.32 ▲0.90
Add New Post /wp-admin/post-new.php1,549 ▲523.18 ▲5.04604.59 ▼50.8744.93 ▼8.33
Media Library /wp-admin/upload.php1,404 ▲164.24 ▲0.0697.75 ▲1.5839.87 ▼4.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-live-export/gp-live-export.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: glotpress

gp-live-export/gp-live-export.php Passed 13 tests

The main file in "GP Live Export" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
Convert your WordPress site into all-in-one translation platform of editor and sandbox. GlotPress plugin Required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin225 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15350225

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods110.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin