89% mc-service-worker-cache

Code Review | MC Service Worker Cache

WordPress plugin MC Service Worker Cache scored89%from 54 tests.

About plugin

  • Plugin page: mc-service-worker...
  • Plugin version: 0.2.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2016
  • Latest release: Jan 20, 2017
  • Number of updates: 22
  • Update frequency: every 12.7 days
  • Top authors: miguelcalderon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,062 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.08ms] Passed 4 tests

Analyzing server-side resources used by MC Service Worker Cache
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.08 ▼3.61
Dashboard /wp-admin3.34 ▲0.0443.39 ▼3.70
Posts /wp-admin/edit.php3.39 ▲0.0443.32 ▼1.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.65 ▼11.92
Media Library /wp-admin/upload.php3.27 ▲0.0434.01 ▲1.76

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification detected: 1 file (0.61KB) outside of "wp-content/plugins/mc-service-worker-cache/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MC Service Worker Cache
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.69 ▲0.071.79 ▲0.2037.01 ▼3.11
Dashboard /wp-admin2,211 ▲375.54 ▲0.0385.72 ▼0.0838.28 ▼5.69
Posts /wp-admin/edit.php2,116 ▲161.94 ▼0.0133.97 ▼1.0935.12 ▼1.72
Add New Post /wp-admin/post-new.php1,541 ▲1322.94 ▼0.21648.71 ▲0.5553.22 ▲0.75
Media Library /wp-admin/upload.php1,416 ▲224.14 ▼0.11103.57 ▲2.6146.57 ▲1.42

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: service worker cache

mc-service-worker-cache/mc-service-worker-cache.php 92% from 13 tests

The principal PHP file in "MC Service Worker Cache" v. 0.2.11 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 504 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin410 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript479294
PHP1828116

PHP code Passed 2 tests

Analyzing 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.25
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin