90% nf-subpages

Code Review | NF Subpages

WordPress plugin NF Subpages scored90%from 54 tests.

About plugin

  • Plugin page: nf-subpages
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Feb 4, 2016
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: macnetic-labs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /572 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.59ms] Passed 4 tests

A check of server-side resources used by NF Subpages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.03 ▼5.03
Dashboard /wp-admin3.31 ▲0.0057.14 ▲11.76
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▼4.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.16 ▼4.05
Media Library /wp-admin/upload.php3.23 ▲0.0032.81 ▼1.08

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

Input-output and database impact 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
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for NF Subpages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.081.60 ▼0.4344.37 ▼1.01
Dashboard /wp-admin2,209 ▲215.86 ▲0.8298.92 ▼14.3938.79 ▼6.02
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0133.94 ▼2.2634.79 ▲2.48
Add New Post /wp-admin/post-new.php1,533 ▲1223.66 ▲0.84655.41 ▼10.6560.57 ▲7.55
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0199.42 ▼1.2940.70 ▼5.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 | 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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: nf subpages, fieldset, subpages, pages, ninja forms...

nf-subpages/nf-subpages.php Passed 13 tests

Analyzing the main PHP file in "NF Subpages" version 1.0
65 characters long description:
A plugin to add subpages. Includes the option for custom classes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin396 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22912167
CSS2251138
PO File2151456
JavaScript17035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin