84% development-mode-for-jetpack

Code Review | Development Mode for Jetpack

WordPress plugin Development Mode for Jetpack scored84%from 54 tests.

About plugin

  • Plugin page: development-mode-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2017
  • Latest release: Sep 24, 2020
  • Number of updates: 5
  • Update frequency: every 241.6 days
  • Top authors: lelandf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,969 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Development Mode for Jetpack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.56 ▼7.11
Dashboard /wp-admin3.31 ▲0.0144.55 ▼2.47
Posts /wp-admin/edit.php3.36 ▲0.0047.30 ▲0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.78 ▼12.19
Media Library /wp-admin/upload.php3.24 ▲0.0036.88 ▲3.21

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Development Mode for Jetpack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.144.33 ▲2.4839.47 ▼5.46
Dashboard /wp-admin2,203 ▲155.85 ▲1.01114.72 ▼1.8444.08 ▼1.24
Posts /wp-admin/edit.php2,092 ▲61.99 ▼0.0040.76 ▲3.6933.72 ▼1.02
Add New Post /wp-admin/post-new.php1,542 ▲918.23 ▼4.88608.15 ▼77.6545.00 ▼6.06
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.1096.61 ▼7.2642.11 ▼2.85

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/development-mode-for-jetpack/development-mode-for-jetpack.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • License uri: Invalid URI ("LICENSE")
Please take inspiration from this readme.txt

development-mode-for-jetpack/development-mode-for-jetpack.php Passed 13 tests

The main file in "Development Mode for Jetpack" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
85 characters long description:
Use select Jetpack features that do not require a connection to WordPress.com servers

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11245

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

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