84% scale-it-up

Code Review | Scale It UP!

WordPress plugin Scale It UP! scored84%from 54 tests.

About plugin

  • Plugin page: scale-it-up
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Feb 12, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: hjakhrw3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,241 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Scale It UP!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.37 ▼4.71
Dashboard /wp-admin3.31 ▼0.0350.27 ▼16.02
Posts /wp-admin/edit.php3.36 ▲0.0149.79 ▲3.41
Add New Post /wp-admin/post-new.php5.89 ▲0.01105.58 ▲0.35
Media Library /wp-admin/upload.php3.24 ▲0.0135.50 ▲0.99

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scale It UP!
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.061.74 ▼0.2141.49 ▼2.42
Dashboard /wp-admin2,195 ▲155.61 ▲0.0391.07 ▼3.9441.90 ▲0.08
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0238.81 ▲2.7534.97 ▼2.77
Add New Post /wp-admin/post-new.php1,526 ▼223.10 ▲0.17607.19 ▼28.0150.81 ▼5.41
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.1095.93 ▼12.0342.67 ▼1.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/scale-it-up/scale-it-up.php:65

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

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (None available yet- coming soon!) image missing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === scale-it-up === )
The official readme.txt is a good inspiration

scale-it-up/scale-it-up.php Passed 13 tests

This is the main PHP file of "Scale It UP!" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
This plugin permits you to scale images up as well as down, in the wordpress media editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121837

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin