84% export-plus

Code Review | Export Plus

WordPress plugin Export Plus scored84%from 54 tests.

About plugin

  • Plugin page: export-plus
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Sep 29, 2014
  • Latest release: Dec 5, 2018
  • Number of updates: 9
  • Update frequency: every 169.9 days
  • Top authors: hlashbrooke (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /14,792 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.11ms] Passed 4 tests

An overview of server-side resources used by Export Plus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.17 ▼3.41
Dashboard /wp-admin3.34 ▼0.0145.04 ▼17.15
Posts /wp-admin/edit.php3.46 ▲0.1050.81 ▲5.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.40 ▼27.12
Media Library /wp-admin/upload.php3.27 ▲0.0336.95 ▲3.26
Export Plus /wp-admin/tools.php?page=export_plus3.2535.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
export_plus_version
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Export Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.181.93 ▼0.1843.47 ▲0.28
Dashboard /wp-admin2,207 ▲195.76 ▼0.1097.21 ▼0.2738.81 ▼3.12
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0638.81 ▼5.0235.57 ▼0.54
Add New Post /wp-admin/post-new.php1,541 ▲1323.25 ▲4.92692.59 ▲78.5759.78 ▲11.57
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0294.86 ▼5.6245.34 ▲0.19
Export Plus /wp-admin/tools.php?page=export_plus9771.6923.1726.58

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • export_plus_version
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/export-plus/includes/export-template.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tools, utilities, import, export

export-plus/export-plus.php Passed 13 tests

The main PHP script in "Export Plus" version 1.0 is automatically included on every request by WordPress
55 characters long description:
A greatly improved export tool for your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin591 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5145331563
JavaScript20028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected