84% replace-content-image-size

Code Review | Replace Content Image Size

WordPress plugin Replace Content Image Size scored84%from 54 tests.

About plugin

  • Plugin page: replace-content-i...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-4.3
  • WordPress version: 6.3.1
  • First release: May 29, 2012
  • Latest release: Aug 31, 2015
  • Number of updates: 20
  • Update frequency: every 59.5 days
  • Top authors: pauiglesias (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /6,150 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Replace Content Image Size
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.10 ▲0.15
Dashboard /wp-admin3.37 ▲0.0247.11 ▼16.22
Posts /wp-admin/edit.php3.42 ▲0.0642.73 ▼1.22
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.05 ▼9.55
Media Library /wp-admin/upload.php3.29 ▲0.0639.60 ▲7.07
Replace Content Image Size /wp-admin/tools.php?page=replace-content-image-size3.2328.68

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Replace Content Image Size
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.57 ▲0.201.69 ▲0.1341.68 ▲1.63
Dashboard /wp-admin2,199 ▲215.54 ▼0.1683.04 ▼16.0837.73 ▼7.34
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.1333.80 ▼3.1534.80 ▼1.66
Add New Post /wp-admin/post-new.php1,532 ▼122.87 ▲0.04650.02 ▼21.3958.12 ▲0.50
Media Library /wp-admin/upload.php1,401 ▲14.20 ▲0.05111.42 ▲1.3947.05 ▼2.65
Replace Content Image Size /wp-admin/tools.php?page=replace-content-image-size8182.0024.3233.71

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=replace-content-image-size
    • > 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/tools.php?page=replace-content-image-size
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: content, image, resize, image sizes, size...

replace-content-image-size/replace-content-image-size.php Passed 13 tests

This is the main PHP file of "Replace Content Image Size" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
Find images displayed in posts content and change the format size, very useful when you change the blog theme.

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
Success! There were no dangerous files found in this plugin348 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1149109275
PO File1262673

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity87.00
▷ Minimum class complexity87.00
▷ Maximum class complexity87.00
Average method complexity13.29
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods342.86%
▷ Protected methods00.00%
▷ Private methods457.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin