84% surbma-jetpack-development-mode

Code Review | Surbma | Jetpack Offline Mode

WordPress plugin Surbma | Jetpack Offline Mode scored 84% from 54 tests.

About plugin

  • Plugin page: surbma-jetpack-de...
  • Plugin version: 2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Apr 8, 2023
  • Number of updates: 22
  • Update frequency: every 138.7 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 3,990 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Surbma | Jetpack Offline Mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.41 ▼1.80
Dashboard /wp-admin3.31 ▲0.0148.56 ▼0.52
Posts /wp-admin/edit.php3.36 ▲0.0048.81 ▲0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.55 ▼11.32
Media Library /wp-admin/upload.php3.23 ▲0.0035.15 ▼0.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Surbma | Jetpack Offline Mode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.54 ▼0.861.75 ▼0.3643.38 ▼2.61
Dashboard /wp-admin2,209 ▲244.82 ▼1.04107.44 ▲2.0141.39 ▼2.37
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0043.40 ▲7.0635.71 ▼0.52
Add New Post /wp-admin/post-new.php1,534 ▲1523.28 ▲0.03718.68 ▲45.6155.34 ▲0.62
Media Library /wp-admin/upload.php1,385 ▼04.24 ▼0.0698.22 ▼4.6542.45 ▼0.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/surbma-jetpack-development-mode/surbma-jetpack-development-mode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: jetpack

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

The primary PHP file in "Surbma | Jetpack Offline Mode" version 2.2 is used by WordPress to initiate all plugin functionality
91 characters long description:
Enables Jetpack's Offline Mode, to use some modules without having a WordPress.com account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin44 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File171833
PHP18138
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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 functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin