84% quotemedia-tools

Code Review | QuoteMedia Tools

WordPress plugin QuoteMedia Tools scored84%from 54 tests.

About plugin

  • Plugin page: quotemedia-tools
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: May 16, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: justin.kuepper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by QuoteMedia Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.94 ▼1.27
Dashboard /wp-admin3.33 ▼0.0246.88 ▼9.41
Posts /wp-admin/edit.php3.38 ▲0.0245.61 ▼5.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.05 ▼21.18
Media Library /wp-admin/upload.php3.25 ▲0.0235.50 ▲2.81
QuoteMedia Tools /wp-admin/options-general.php?page=qm-tools-plugin3.2233.92

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for QuoteMedia Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5114.17 ▼0.201.86 ▼0.2543.75 ▲0.12
Dashboard /wp-admin2,200 ▲205.56 ▼0.0780.67 ▼7.9938.89 ▼3.04
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0532.78 ▼3.7233.30 ▼1.16
Add New Post /wp-admin/post-new.php1,533 ▲723.11 ▼0.06672.58 ▲2.1354.74 ▲1.98
Media Library /wp-admin/upload.php1,411 ▲144.22 ▲0.0699.30 ▼0.9442.61 ▼1.64
QuoteMedia Tools /wp-admin/options-general.php?page=qm-tools-plugin7962.0424.5022.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quotemedia-tools/quotemedia_tools.php:39

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === quotemedia-tools === )
You can look at the official readme.txt

quotemedia-tools/quotemedia_tools.php 92% from 13 tests

The main PHP script in "QuoteMedia Tools" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quotemedia-tools.php" instead of "quotemedia_tools.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151759

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin