94% eliteprospects-tooltips

Code Review | Eliteprospects Tooltips

WordPress plugin Eliteprospects Tooltips scored 94% from 54 tests.

About plugin

  • Plugin page: eliteprospects-to...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.9.1
  • WordPress version: 5.8.1
  • First release: Jul 30, 2014
  • Latest release: Jul 30, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: carlgrundberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 802 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼147.09ms] Passed 4 tests

A check of server-side resources used by Eliteprospects Tooltips
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.62 ▲13.94
Dashboard /wp-admin3.06 ▲0.0149.27 ▼4.24
Posts /wp-admin/edit.php3.11 ▼0.0043.66 ▼10.62
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.46 ▼573.02
Media Library /wp-admin/upload.php3.00 ▲0.0035.06 ▼0.47

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Eliteprospects Tooltips
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲6615.91 ▼0.0213.72 ▲5.6749.19 ▼0.60
Dashboard /wp-admin2,967 ▲305.86 ▼0.08145.39 ▼11.24128.48 ▲8.57
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0177.84 ▲3.2198.35 ▲12.74
Add New Post /wp-admin/post-new.php1,615 ▼6821.33 ▲2.52287.71 ▼83.62108.18 ▼11.38
Media Library /wp-admin/upload.php1,807 ▲745.05 ▲0.06154.99 ▼2.85125.25 ▲0.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eliteprospects-tooltips/index.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

eliteprospects-tooltips/index.php 92% from 13 tests

"Eliteprospects Tooltips" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eliteprospects-tooltips.php" instead of "index.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
Success! There were no dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1695

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin