10% mos-speed-up

Code Review | Mos Speed up

WordPress plugin Mos Speed up scored10%from 54 tests.

About plugin

  • Plugin page: mos-speed-up
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2019
  • Latest release: Mar 12, 2020
  • Number of updates: 8
  • Update frequency: every 53.1 days
  • Top authors: mostak.shahid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /864 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/mos-speed-up/mos-speed-up-functions.php+68
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.17MB] [CPU: ▼21.25ms] Passed 4 tests

Analyzing server-side resources used by Mos Speed up
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0029.45 ▼14.60
Dashboard /wp-admin3.15 ▼0.1631.18 ▼21.92
Posts /wp-admin/edit.php3.28 ▼0.0734.18 ▼18.47
Add New Post /wp-admin/post-new.php5.45 ▼0.4373.24 ▼30.02
Media Library /wp-admin/upload.php3.23 ▲0.0126.52 ▼9.23
Mos Speed up /wp-admin/options-general.php?page=mos_speed_up_settings3.1527.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mos Speed up
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13714.04 ▼0.625.95 ▲4.1241.96 ▼4.00
Dashboard /wp-admin2,210 ▲225.81 ▲0.9398.05 ▼23.6737.09 ▼7.99
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0334.46 ▼1.4235.00 ▲0.33
Add New Post /wp-admin/post-new.php1,545 ▲3118.33 ▲0.61599.64 ▼77.2662.37 ▲10.72
Media Library /wp-admin/upload.php1,392 ▲74.23 ▼0.04101.82 ▼2.8147.62 ▲1.25
Mos Speed up /wp-admin/options-general.php?page=mos_speed_up_settings9871.6824.0329.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • mos_speed_up_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mos_speed_up_settings
    • > Notice in wp-content/plugins/mos-speed-up/mos-speed-up-functions.php+51
    Undefined index: query_except

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mos-speed-up/mos-speed-up-functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-speed-up/mos-speed-up-settings.php:45

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: improve your scores, wordpress site speed up, gtmetrix rating up, remove query strings from static resources, defer js...

mos-speed-up/mos-speed-up.php Passed 13 tests

Analyzing the main PHP file in "Mos Speed up" version 1.0.2
98 characters long description:
Increases the speed of your site to improve your scores in Pingdom, GTmetrix, PageSpeed and YSlow.

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
Everything looks great! No dangerous files found in this plugin450 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP32927326
JavaScript37288
CSS111036

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.29
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected