89% specific-content-for-mobile

Code Review | Specific Content For Mobile - Customize the mobile version without redirections

WordPress plugin Specific Content For Mobile - Customize the mobile version without redirections scored89%from 54 tests.

About plugin

  • Plugin page: specific-content-...
  • Plugin version: 0.1.9.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 7, 2019
  • Latest release: Oct 29, 2023
  • Number of updates: 180
  • Update frequency: every 8.6 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

6,000+ active /73,626 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.50ms] Passed 4 tests

Analyzing server-side resources used by Specific Content For Mobile - Customize the mobile version without redirections
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.06 ▼4.91
Dashboard /wp-admin3.36 ▲0.0647.82 ▲0.46
Posts /wp-admin/edit.php3.42 ▲0.0647.63 ▼2.08
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.65 ▲0.54
Media Library /wp-admin/upload.php3.28 ▲0.0637.70 ▲0.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Specific Content For Mobile - Customize the mobile version without redirections
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.25 ▲0.001.85 ▲0.1644.38 ▲0.65
Dashboard /wp-admin2,212 ▲355.59 ▼0.0693.61 ▼1.9542.33 ▲0.02
Posts /wp-admin/edit.php2,152 ▲521.98 ▼0.0534.40 ▼5.0437.63 ▲0.92
Add New Post /wp-admin/post-new.php6,241 ▲4,71525.82 ▲2.22874.55 ▲156.7749.67 ▼12.31
Media Library /wp-admin/upload.php1,417 ▲174.25 ▲0.0796.44 ▼17.2643.56 ▼5.34

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 were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "buymeacoffee.com/josem"
Please take inspiration from this readme.txt

specific-content-for-mobile/specific-content-for-mobile.php 92% from 13 tests

The main PHP script in "Specific Content For Mobile - Customize the mobile version without redirections" version 0.1.9.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,863 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8661481,554
CSS110149
PO File1232390
JavaScript21070

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions70
▷ Named functions6694.29%
▷ Anonymous functions45.71%
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
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/scfm-phone.png8.27KB8.28KB0.00%
assets/img/scfm-tablet.png4.92KB4.93KB0.00%
assets/img/scfm-phone-rotated.png8.16KB8.20KB0.00%
assets/img/scfm-tablet-rotated.png4.36KB4.37KB0.00%