68% image-to-break-point

Code Review | Image To Break Point

WordPress plugin Image To Break Point scored68%from 54 tests.

About plugin

  • Plugin page: image-to-break-point
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Nov 29, 2013
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: beejeridou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /755 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼31.23ms] Passed 4 tests

Analyzing server-side resources used by Image To Break Point
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.88 ▼2.05
Dashboard /wp-admin3.00 ▼0.3023.14 ▼27.05
Posts /wp-admin/edit.php3.00 ▼0.3522.97 ▼23.49
Add New Post /wp-admin/post-new.php3.00 ▼2.8825.19 ▼62.36
Media Library /wp-admin/upload.php3.00 ▼0.2321.86 ▼12.03
Image To Break Point /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php3.0022.94

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image To Break Point
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,045 ▲29913.91 ▼0.486.55 ▲4.9341.86 ▼2.94
Dashboard /wp-admin2,281 ▲904.90 ▼0.91100.10 ▼8.7539.95 ▲1.91
Posts /wp-admin/edit.php2,111 ▲252.01 ▼0.0239.89 ▲1.9134.67 ▲1.21
Add New Post /wp-admin/post-new.php6,265 ▲4,73219.14 ▼3.95919.13 ▲261.8051.47 ▼2.56
Media Library /wp-admin/upload.php1,428 ▲404.23 ▲0.06101.56 ▲2.4144.24 ▲1.14
Image To Break Point /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php7932.1624.2026.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
    • > Notice in wp-content/plugins/image-to-break-point/imagetobreakpoint.php+148
    Undefined variable: v
    • > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-to-break-point/imagetobreakpoint.php:25

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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (screenshot-1.jpg)
The official readme.txt might help

image-to-break-point/imagetobreakpoint.php 85% from 13 tests

Analyzing the main PHP file in "Image To Break Point" version 1.0.0
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 306 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-to-break-point.php" instead of "imagetobreakpoint.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin259 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14011227
JavaScript21131
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/mobile_portrait.png0.65KB0.42KB▼ 34.80%
img/desktop_landscape.png0.70KB0.54KB▼ 22.49%
screenshot-1.png11.13KB4.29KB▼ 61.45%