10% easy-export

Code Review | Easy Export

WordPress plugin Easy Export scored10%from 54 tests.

About plugin

  • Plugin page: easy-export
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-5.6.0
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Apr 6, 2022
  • Number of updates: 127
  • Update frequency: every 13.4 days
  • Top authors: hpgong (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,127 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method HP_Easy_Export::activate_hp_easy_export_report() should not be called statically

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

An overview of server-side resources used by Easy Export
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.45 ▼1.96
Dashboard /wp-admin3.31 ▼0.0446.36 ▼21.53
Posts /wp-admin/edit.php3.36 ▲0.0044.02 ▼8.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.31 ▼14.81
Media Library /wp-admin/upload.php3.23 ▲0.0034.84 ▼2.63

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Export
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.17 ▼0.451.80 ▲0.1038.89 ▼9.04
Dashboard /wp-admin2,198 ▲185.62 ▼0.0787.88 ▼2.6140.12 ▼0.94
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0234.45 ▼3.0732.36 ▼3.90
Add New Post /wp-admin/post-new.php1,526 ▼223.07 ▼0.16652.41 ▼78.8949.55 ▼10.18
Media Library /wp-admin/upload.php1,400 ▼34.37 ▲0.1897.34 ▼14.3441.84 ▼3.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method HP_Easy_Export::uninstall_hp_easy_export_report() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Donate link: Invalid url: "N/A"
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in easy-export/assets to your readme.txt
The official readme.txt might help

easy-export/hp-easy-export-reports.php 92% from 13 tests

The main file in "Easy Export" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-export.php" instead of "hp-easy-export-reports.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin18,747 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62,2073,12114,705
CSS3535233,139
PHP2910836903

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity6.70
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon.png15.12KB0.85KB▼ 94.36%