74% spiderdisplay

Code Review | SpiderDisplay

WordPress plugin SpiderDisplay scored 74% from 54 tests.

About plugin

  • Plugin page: spiderdisplay
  • Plugin version: 1.9.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 5.8.1
  • First release: Apr 12, 2019
  • Latest release: Jun 15, 2020
  • Number of updates: 8
  • Update frequency: every 74.3 days
  • Top authors: fyljp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 12,086 total downloads

Benchmarks

Plugin footprint 65% 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.04MB] [CPU: ▼145.20ms] Passed 4 tests

This is a short check of server-side resources used by SpiderDisplay
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0434.34 ▼2.63
Dashboard /wp-admin3.11 ▲0.0542.18 ▼3.69
Posts /wp-admin/edit.php3.16 ▲0.0546.07 ▲1.64
Add New Post /wp-admin/post-new.php5.46 ▲0.0392.59 ▼575.54
Media Library /wp-admin/upload.php3.05 ▲0.0534.94 ▲1.05
Detail /wp-admin/admin.php?page=SpiderDisplay_All3.0231.50
SpiderDisplay /wp-admin/admin.php?page=spiderdisplay/SpiderDisplay.php3.0231.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: 1 new table, 1 new option
New tables
wp_spiderdisplay
New WordPress options
SpiderDisplayVersion

Browser metrics Passed 4 tests

A check of browser resources used by SpiderDisplay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,737 ▲14215.95 ▲0.038.68 ▲0.8150.00 ▼5.91
Dashboard /wp-admin3,007 ▲765.92 ▼0.26138.71 ▼5.85110.20 ▼1.78
Posts /wp-admin/edit.php2,773 ▲342.70 ▼0.0068.09 ▲0.3388.21 ▼1.96
Add New Post /wp-admin/post-new.php1,522 ▲2218.61 ▼0.15368.35 ▼18.08109.42 ▼0.07
Media Library /wp-admin/upload.php1,841 ▲315.05 ▲0.04143.96 ▼13.11117.46 ▼3.79
Detail /wp-admin/admin.php?page=SpiderDisplay_All1,0672.0552.9873.54
SpiderDisplay /wp-admin/admin.php?page=spiderdisplay/SpiderDisplay.php1,0842.0953.5092.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/spiderdisplay/SpiderDisplay.php+48
    Undefined variable: wpdb
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_spiderdisplay

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/spiderdisplay/SpiderDisplay.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

spiderdisplay/SpiderDisplay.php 92% from 13 tests

"SpiderDisplay" version 1.9.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spiderdisplay.php" instead of "SpiderDisplay.php")

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
There were no executable files found in this plugin210 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12025210

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
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
No PNG images were found in this plugin