68% image-space-media

Code Review | Image Space Media

WordPress plugin Image Space Media scored 68% from 54 tests.

About plugin

  • Plugin page: image-space-media
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.3.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2012
  • Latest release: Feb 6, 2012
  • Number of updates: 6
  • Update frequency: every 1.8 days
  • Top authors: pivari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,493 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Image Space Media
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.61 ▼0.19
Dashboard /wp-admin3.00 ▼0.3026.01 ▼34.35
Posts /wp-admin/edit.php3.00 ▼0.3629.61 ▼24.76
Add New Post /wp-admin/post-new.php3.00 ▼2.8928.56 ▼78.87
Media Library /wp-admin/upload.php3.00 ▼0.2327.76 ▼10.31
Image Space Media /wp-admin/options-general.php?page=ism3.0026.66

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

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

Browser metrics Passed 4 tests

Image Space Media: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲9414.81 ▲0.592.98 ▲0.6854.10 ▲0.40
Dashboard /wp-admin2,207 ▲224.87 ▼0.94129.88 ▼10.1655.82 ▲1.18
Posts /wp-admin/edit.php2,096 ▲41.98 ▼0.0343.68 ▼2.9144.76 ▼1.58
Add New Post /wp-admin/post-new.php1,536 ▼023.17 ▲0.05748.20 ▼15.8272.06 ▼4.00
Media Library /wp-admin/upload.php1,392 ▲74.15 ▲0.02129.54 ▼0.8165.49 ▲0.68
Image Space Media /wp-admin/options-general.php?page=ism8472.0232.4738.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > 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.
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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=ism
    • > 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.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-space-media/image-space-media.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/image-space-media/options.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Image Space Media settings page.) image required
You can look at the official readme.txt

image-space-media/image-space-media.php Passed 13 tests

The principal PHP file in "Image Space Media" v. 1.1.0 is loaded by WordPress automatically on each request
60 characters long description:
A simple Plugin to add Image Space Media code on your pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2242187

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.62KB4.65KB▼ 46.08%