84% wp-isell-photo

Code Review | WP iSell Photo

WordPress plugin WP iSell Photo scored84%from 54 tests.

About plugin

  • Plugin page: wp-isell-photo
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Oct 20, 2012
  • Latest release: Dec 7, 2016
  • Number of updates: 24
  • Update frequency: every 71.0 days
  • Top authors: wpecommerce (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /24,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.62ms] Passed 4 tests

An overview of server-side resources used by WP iSell Photo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.14 ▲1.02
Dashboard /wp-admin3.32 ▲0.0145.93 ▼3.56
Posts /wp-admin/edit.php3.37 ▲0.0148.35 ▼1.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.99 ▼14.03
Media Library /wp-admin/upload.php3.24 ▲0.0139.15 ▲6.62
WP iSell Photo /wp-admin/options-general.php?page=wp-iSell-photo-settings3.1830.16

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

WP iSell Photo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼1.051.81 ▼0.0144.53 ▲3.63
Dashboard /wp-admin2,207 ▲165.88 ▲1.0196.19 ▼9.8938.32 ▼4.13
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0241.62 ▲1.0734.90 ▼3.50
Add New Post /wp-admin/post-new.php1,523 ▼1023.12 ▼0.26593.88 ▼52.9753.86 ▼0.60
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0194.31 ▼3.1143.95 ▲0.83
WP iSell Photo /wp-admin/options-general.php?page=wp-iSell-photo-settings8762.1827.9240.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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 server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wp-iSell-photo-settings
    • > 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=wp-iSell-photo-settings
    • > 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-isell-photo/wp-iSell-photo.php 92% from 13 tests

The primary PHP file in "WP iSell Photo" version 1.0.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-isell-photo.php" instead of "wp-iSell-photo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin318 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13155318

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin