84% linkwithin-mobile-downsizer

Code Review | LinkWithin Mobile Downsizer

WordPress plugin LinkWithin Mobile Downsizer scored84%from 54 tests.

About plugin

  • Plugin page: linkwithin-mobile...
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jan 25, 2013
  • Latest release: Feb 7, 2013
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: Keith Lytle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by LinkWithin Mobile Downsizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.27 ▼0.55
Dashboard /wp-admin3.32 ▼0.0346.87 ▼15.70
Posts /wp-admin/edit.php3.37 ▲0.0152.24 ▲1.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.23 ▼12.09
Media Library /wp-admin/upload.php3.24 ▲0.0131.48 ▼3.33

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LinkWithin Mobile Downsizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.31 ▼0.071.74 ▼0.0442.97 ▼4.51
Dashboard /wp-admin2,195 ▲215.55 ▼0.1886.26 ▼35.6138.72 ▼8.60
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0239.12 ▲1.4136.14 ▼0.68
Add New Post /wp-admin/post-new.php1,529 ▲323.29 ▼0.38615.37 ▼54.0149.10 ▼8.23
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0093.43 ▼3.9342.04 ▼4.71

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

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkwithin-mobile-downsizer/linkwithin-mobile-downsizer.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (N/A)
The official readme.txt might help

linkwithin-mobile-downsizer/linkwithin-mobile-downsizer.php Passed 13 tests

The primary PHP file in "LinkWithin Mobile Downsizer" version 0.0.5 is used by WordPress to initiate all plugin functionality
86 characters long description:
This plugin created specifically for Not-Literally.com but works well enough to share!

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
Good job! No executable or dangerous file extensions detected40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142840

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
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 functions1100.00%
▷ Anonymous functions00.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