89% export-custom-pages

Code Review | Export Custom Pages

WordPress plugin Export Custom Pages scored89%from 54 tests.

About plugin

  • Plugin page: export-custom-pages
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 10, 2019
  • Latest release: Dec 10, 2019
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: okfie (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /9,843 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Export Custom Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.29 ▼1.33
Dashboard /wp-admin3.32 ▲0.0245.05 ▼4.04
Posts /wp-admin/edit.php3.37 ▲0.0145.21 ▲1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.82 ▼4.59
Media Library /wp-admin/upload.php3.24 ▲0.0133.83 ▲1.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
WECP_version
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Export Custom Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.31 ▼0.991.66 ▼0.1143.88 ▲3.63
Dashboard /wp-admin2,209 ▲174.86 ▼0.09107.06 ▼5.6341.10 ▼1.63
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0240.40 ▲3.4035.05 ▲2.69
Add New Post /wp-admin/post-new.php1,517 ▼317.70 ▼5.39643.50 ▼4.4964.85 ▲11.31
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0993.85 ▼1.7842.64 ▲1.59

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • WECP_version
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Tools->Export Page.)
You can look at the official readme.txt

export-custom-pages/wp-export-custom-pages.php 85% from 13 tests

The primary PHP file in "Export Custom Pages" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("export-custom-pages.php" instead of "wp-export-custom-pages.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected368 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP133120334
PO File16834

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods1062.50%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin