73% verbatim

Code Review | Verbatim

WordPress plugin Verbatim scored73%from 54 tests.

About plugin

  • Plugin page: verbatim
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 11, 2014
  • Latest release: Mar 11, 2015
  • Number of updates: 37
  • Update frequency: every 2.4 days
  • Top authors: ramsaylanier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,229 total downloads

Benchmarks

Plugin footprint 83% from 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.31MB] [CPU: ▼10.23ms] Passed 4 tests

An overview of server-side resources used by Verbatim
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.72 ▼35.73
Dashboard /wp-admin3.35 ▲0.0552.25 ▼2.46
Posts /wp-admin/edit.php3.40 ▲0.0454.55 ▼0.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0499.71 ▼1.92
Media Library /wp-admin/upload.php3.27 ▲0.0436.76 ▼0.80
Verbatim /wp-admin/options-general.php?page=verbatim_settings_page3.2641.00

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Verbatim
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19314.64 ▲0.4013.78 ▲12.1243.65 ▼1.10
Dashboard /wp-admin2,199 ▲225.63 ▼0.0291.50 ▼7.5638.42 ▼5.85
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0438.33 ▲0.7035.18 ▼0.59
Add New Post /wp-admin/post-new.php1,529 ▼723.52 ▲5.26670.67 ▲53.7251.19 ▼13.51
Media Library /wp-admin/upload.php1,401 ▲14.23 ▼0.00101.09 ▼7.5642.98 ▼3.27
Verbatim /wp-admin/options-general.php?page=verbatim_settings_page9782.0324.9731.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/verbatim/admin/verbatim_admin.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/verbatim/verbatim.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/verbatim/admin/verbatim_admin.php:52

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=verbatim_settings_page
    • > Rendering (severe) in unknown
    /wp-admin/options-general.php?page=verbatim_settings_page 175 Error: attribute d: Expected number, "…3-0.2,0.7,0,0.7,x0.4v2.6c0,0.3,0…".

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === verbatim === )
The official readme.txt might help

verbatim/verbatim.php Passed 13 tests

"Verbatim" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Allows deep linking directly to post content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected611 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2469296
JavaScript1584207
CSS217089
SVG20219

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png272.69KB78.15KB▼ 71.34%