99% wp-modalplate

Code Review | WP Modalplate

WordPress plugin WP Modalplate scored 99% from 54 tests.

About plugin

  • Plugin page: wp-modalplate
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 5.8.1
  • First release: Nov 7, 2014
  • Latest release: Nov 9, 2014
  • Number of updates: 8
  • Update frequency: every 9.0 days
  • Top authors: jamesdbruner (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,405 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by WP Modalplate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1331.36 ▼74.84
Dashboard /wp-admin3.07 ▲0.0146.86 ▼11.61
Posts /wp-admin/edit.php3.12 ▲0.0143.70 ▼48.69
Add New Post /wp-admin/post-new.php5.43 ▼0.0192.74 ▼586.64
Media Library /wp-admin/upload.php3.01 ▲0.0127.88 ▼5.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Modalplate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.90 ▲0.3111.16 ▼34.0748.96 ▼3.26
Dashboard /wp-admin2,973 ▲275.90 ▲0.03132.99 ▼27.27112.79 ▼1.58
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0263.92 ▼0.3388.61 ▼0.08
Add New Post /wp-admin/post-new.php1,672 ▼1718.89 ▲3.32393.56 ▼622.65109.97 ▼30.01
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.04152.56 ▲14.25115.59 ▲2.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: modalplate, wp modalplate, modal window, modal

wp-modalplate/modalplate.php 85% from 13 tests

Analyzing the main PHP file in "WP Modalplate" version 1.0.0
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-modalplate.php" instead of "modalplate.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected93 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5272688
JavaScript2004
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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