89% extra-menu-options-for-jetpack

Code Review | Extra menu options for Jetpack

WordPress plugin Extra menu options for Jetpack scored89%from 54 tests.

About plugin

  • Plugin page: extra-menu-option...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4
  • WordPress version: 6.3.1
  • First release: Apr 8, 2020
  • Latest release: Apr 8, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: fpuenteonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.27ms] Passed 4 tests

Server-side resources used by Extra menu options for Jetpack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.31 ▼0.04
Dashboard /wp-admin3.31 ▲0.0049.11 ▼3.88
Posts /wp-admin/edit.php3.36 ▲0.0045.39 ▼4.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.69 ▼13.09
Media Library /wp-admin/upload.php3.23 ▲0.0035.86 ▼3.15

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Extra menu options for Jetpack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.551.71 ▲0.0645.13 ▲4.83
Dashboard /wp-admin2,195 ▲155.54 ▼0.1288.34 ▼16.0537.35 ▼12.15
Posts /wp-admin/edit.php2,103 ▲31.97 ▲0.0236.92 ▼3.7834.12 ▼5.76
Add New Post /wp-admin/post-new.php1,528 ▲223.10 ▲0.04661.68 ▼52.0252.49 ▲1.68
Media Library /wp-admin/upload.php1,397 ▼64.19 ▲0.00101.38 ▼5.9544.18 ▼3.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: wordpresscom, jetpack

extra-menu-options-for-jetpack/extra-menu-options-for-jetpack.php 85% from 13 tests

The main file in "Extra menu options for Jetpack" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages/")

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
Everything looks great! No dangerous files found in this plugin337 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP122017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.80
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin