84% mobile-ready-content-images

Code Review | Mobile Ready Content Images

WordPress plugin Mobile Ready Content Images scored84%from 54 tests.

About plugin

  • Plugin page: mobile-ready-cont...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Feb 12, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jervenmatthew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.32MB] [CPU: ▼14.93ms] Passed 4 tests

An overview of server-side resources used by Mobile Ready Content Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0133.74 ▼7.03
Dashboard /wp-admin3.31 ▲0.0146.59 ▼2.72
Posts /wp-admin/edit.php3.42 ▲0.0746.59 ▼2.48
Add New Post /wp-admin/post-new.php4.60 ▼1.2845.31 ▼47.48
Media Library /wp-admin/upload.php3.23 ▲0.0134.09 ▼0.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mobile Ready Content Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.70 ▼0.681.75 ▼0.0640.44 ▼6.39
Dashboard /wp-admin2,206 ▲145.82 ▲0.8996.00 ▼23.4239.74 ▼1.88
Posts /wp-admin/edit.php2,086 ▼61.99 ▲0.0040.36 ▼0.0835.09 ▼0.66
Add New Post /wp-admin/post-new.php45 ▼1,4880.44 ▼17.910.10 ▼609.3811.78 ▼54.09
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.03104.17 ▲8.0263.53 ▲20.03

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • recovery_mode_email_last_sent

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mobile-ready-content-images/index.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: images, mobile, responsive images, content images, responsive

mobile-ready-content-images/index.php 92% from 13 tests

The main PHP file in "Mobile Ready Content Images" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mobile-ready-content-images.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,666 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33555281,666

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity143.67
▷ Minimum class complexity104.00
▷ Maximum class complexity197.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods110
▷ Static methods10.91%
▷ Public methods9283.64%
▷ Protected methods1614.55%
▷ Private methods21.82%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants2195.45%
▷ Class constants14.55%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected