84% wp-permamod

Code Review | wp-permamod

WordPress plugin wp-permamod scored84%from 54 tests.

About plugin

  • Plugin page: wp-permamod
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2014
  • Latest release: Jul 11, 2019
  • Number of updates: 8
  • Update frequency: every 232.0 days
  • Top authors: qrawl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /883 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by wp-permamod
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.34 ▼4.42
Dashboard /wp-admin3.32 ▲0.0144.77 ▼0.77
Posts /wp-admin/edit.php3.37 ▲0.0149.23 ▲0.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.64 ▼8.40
Media Library /wp-admin/upload.php3.24 ▲0.0133.34 ▲3.01

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for wp-permamod
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.611.81 ▼0.4244.36 ▼2.52
Dashboard /wp-admin2,209 ▲214.88 ▼0.02100.89 ▼3.5640.26 ▼6.39
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0139.26 ▼0.6436.01 ▼1.03
Add New Post /wp-admin/post-new.php1,542 ▲2318.44 ▼4.60626.60 ▼18.4866.26 ▲3.78
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.0195.83 ▼6.6045.19 ▲2.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-permamod/wp-permamod.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: permalink, anchor

wp-permamod/wp-permamod.php Passed 13 tests

"wp-permamod" version 0.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
A Wordpress plugin that adds anchor reference to post and page links.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192119

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin