90% simple-export-page

Code Review | Simple Export Page

WordPress plugin Simple Export Page scored90%from 54 tests.

About plugin

  • Plugin page: simple-export-page
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2020
  • Latest release: Feb 6, 2020
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: ervannur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /478 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Simple Export Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.71 ▲0.76
Dashboard /wp-admin3.32 ▲0.0145.64 ▼6.50
Posts /wp-admin/edit.php3.37 ▲0.0147.28 ▼3.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.18 ▼11.46
Media Library /wp-admin/upload.php3.24 ▲0.0136.59 ▲1.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Export Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.51 ▼0.801.64 ▼0.0544.40 ▼2.08
Dashboard /wp-admin2,200 ▲95.83 ▼0.06102.37 ▼12.5442.94 ▼4.78
Posts /wp-admin/edit.php2,099 ▲72.05 ▲0.0635.93 ▼5.1534.05 ▼2.23
Add New Post /wp-admin/post-new.php1,534 ▲123.31 ▲0.16645.35 ▼40.1459.97 ▲1.78
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0093.31 ▼19.4342.29 ▼4.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: page, simple, easy, export

simple-export-page/simple-export-page.php Passed 13 tests

"Simple Export Page" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
Easily export one or more pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected231 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP247106231

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.82
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods19.09%
▷ Protected methods00.00%
▷ Private methods1090.91%
Functions2
▷ Named functions2100.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 images were found in this plugin