89% curatewp-nested-posts

Code Review | Nested Posts by CurateWP

WordPress plugin Nested Posts by CurateWP scored89%from 54 tests.

About plugin

  • Plugin page: curatewp-nested-p...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.2.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Oct 6, 2019
  • Number of updates: 8
  • Update frequency: every 22.4 days
  • Top authors: jrtashjian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.14MB] [CPU: ▼15.55ms] Passed 4 tests

This is a short check of server-side resources used by Nested Posts by CurateWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1440.89 ▼3.07
Dashboard /wp-admin3.44 ▲0.0948.81 ▼13.05
Posts /wp-admin/edit.php3.55 ▲0.1953.87 ▲0.24
Add New Post /wp-admin/post-new.php4.95 ▼0.9454.14 ▼46.31
Media Library /wp-admin/upload.php3.36 ▲0.1339.81 ▲1.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_cwpnp_widget
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Nested Posts by CurateWP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8113.24 ▼1.154.82 ▲3.0741.55 ▼3.73
Dashboard /wp-admin2,221 ▲175.80 ▲0.8398.12 ▼21.1938.12 ▼3.46
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0439.06 ▼1.7334.85 ▼1.61
Add New Post /wp-admin/post-new.php6,195 ▲4,66426.08 ▲2.771,188.12 ▲551.1254.10 ▲6.54
Media Library /wp-admin/upload.php1,403 ▼04.26 ▲0.03102.17 ▼0.9546.25 ▲0.28

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_cwpnp_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: child posts, engagement, shortcode, gutenberg, nested posts...

curatewp-nested-posts/curatewp-nested-posts.php 77% from 13 tests

The main PHP script in "Nested Posts by CurateWP" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected712 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12144352658
PO File1182850
JSON2002
CSS1001
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.80
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods1232.43%
▷ Public methods3697.30%
▷ Protected methods00.00%
▷ Private methods12.70%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.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 files were detected