90% mnml-footnotes

Code Review | MNML Footnotes

WordPress plugin MNML Footnotes scored90%from 54 tests.

About plugin

  • Plugin page: mnml-footnotes
  • Plugin version: 0.3.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Oct 26, 2017
  • Number of updates: 17
  • Update frequency: every 8.2 days
  • Top authors: maurobringolf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /959 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.07MB] [CPU: ▲1.45ms] Passed 4 tests

A check of server-side resources used by MNML Footnotes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.04 ▲0.40
Dashboard /wp-admin3.38 ▲0.0758.08 ▲1.76
Posts /wp-admin/edit.php3.49 ▲0.1351.06 ▼0.42
Add New Post /wp-admin/post-new.php5.96 ▲0.07102.04 ▲8.06
Media Library /wp-admin/upload.php3.30 ▲0.0741.99 ▲4.06

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for MNML Footnotes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.38 ▲0.102.08 ▲0.2244.16 ▼0.35
Dashboard /wp-admin2,192 ▲155.58 ▼0.0391.36 ▲0.0938.81 ▼5.80
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0539.27 ▼1.1536.48 ▼1.65
Add New Post /wp-admin/post-new.php1,545 ▼023.17 ▼0.01676.51 ▼34.5751.14 ▼8.90
Media Library /wp-admin/upload.php1,400 ▲64.18 ▼0.0995.46 ▼15.4644.34 ▼0.50

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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
10 plugin tags: blogging, notes, post, publishing, bibliography...

mnml-footnotes/mnml-footnotes.php Passed 13 tests

The main PHP script in "MNML Footnotes" version 0.3.0 is automatically included on every request by WordPress
32 characters long description:
Auto-listed footnotes for posts.

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
There were no executable files found in this plugin297 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6119246262
PO File1101235

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.25
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods25
▷ Static methods14.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.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 images were found in this plugin