83% wp-revealer

Code Review | WP Revealer Plugin

WordPress plugin WP Revealer Plugin scored83%from 54 tests.

About plugin

  • Plugin page: wp-revealer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Jul 7, 2020
  • Number of updates: 16
  • Update frequency: every 116.3 days
  • Top authors: Plugin Results (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,131 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP Revealer Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.82 ▼0.39
Dashboard /wp-admin3.32 ▲0.0153.11 ▼1.69
Posts /wp-admin/edit.php3.37 ▲0.0155.01 ▲4.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.11 ▼9.07
Media Library /wp-admin/upload.php3.24 ▲0.0143.82 ▼8.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

WP Revealer Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15013.63 ▼0.575.23 ▲3.2949.70 ▲1.45
Dashboard /wp-admin2,208 ▲204.86 ▼0.04110.84 ▲2.7838.88 ▼1.40
Posts /wp-admin/edit.php2,094 ▲21.99 ▼0.0443.52 ▼22.6640.63 ▲6.03
Add New Post /wp-admin/post-new.php1,530 ▲1223.33 ▲0.30608.66 ▼34.2483.54 ▲30.21
Media Library /wp-admin/upload.php1,393 ▲54.29 ▲0.08101.58 ▼29.1745.00 ▼0.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-revealer/wp-revealer.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires php: Version format is invalid
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

wp-revealer/wp-revealer.php 92% from 13 tests

This is the main PHP file of "WP Revealer Plugin" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 250 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin41 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121232
JavaScript1009

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected