89% wp-passport-to-paradise

Code Review | Passport to Paradise

WordPress plugin Passport to Paradise scored89%from 54 tests.

About plugin

  • Plugin page: wp-passport-to-pa...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Jul 21, 2017
  • Latest release: Jul 22, 2017
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: doppl3r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /535 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Passport to Paradise
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.42 ▼4.09
Dashboard /wp-admin3.34 ▲0.0348.63 ▼7.54
Posts /wp-admin/edit.php3.39 ▲0.0350.08 ▼6.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.56 ▼10.90
Media Library /wp-admin/upload.php3.26 ▲0.0344.02 ▲5.11

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables
wp_ptp_table
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
my_plugin_version

Browser metrics Passed 4 tests

Passport to Paradise: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.74 ▲0.391.81 ▲0.0240.72 ▼4.49
Dashboard /wp-admin2,211 ▲345.59 ▼0.0488.02 ▼0.7641.69 ▲1.85
Posts /wp-admin/edit.php2,116 ▲131.97 ▼0.0139.18 ▼3.0835.82 ▼0.62
Add New Post /wp-admin/post-new.php1,539 ▲1323.22 ▲0.09703.06 ▲1.4857.47 ▼6.44
Media Library /wp-admin/upload.php1,413 ▲134.36 ▲0.17103.35 ▼14.8843.44 ▼8.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • my_plugin_version
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 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
2 plugin tags: edit, table

wp-passport-to-paradise/passport-to-paradise.php 77% from 13 tests

"Passport to Paradise" version 0.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-passport-to-paradise.php" instead of "passport-to-paradise.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)

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
Everything looks great! No dangerous files found in this plugin757 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
Sass1130241
CSS379225
PHP62441188
JavaScript41117103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin