90% nextlevel-portfolio-custom-post

Code Review | Nextlevel Portfolio Custom Post

WordPress plugin Nextlevel Portfolio Custom Post scored90%from 54 tests.

About plugin

  • Plugin page: nextlevel-portfol...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.3
  • WordPress version: 6.3.1
  • First release: May 13, 2021
  • Latest release: May 19, 2022
  • Number of updates: 7
  • Update frequency: every 53.3 days
  • Top authors: khuda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,619 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.07MB] [CPU: ▼2.67ms] Passed 4 tests

Analyzing server-side resources used by Nextlevel Portfolio Custom Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.26 ▲0.14
Dashboard /wp-admin3.37 ▲0.0754.46 ▲4.03
Posts /wp-admin/edit.php3.49 ▲0.1350.94 ▼1.12
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.41 ▼8.46
Media Library /wp-admin/upload.php3.29 ▲0.0638.22 ▼1.23
Portfolios /wp-admin/edit.php?post_type=portfolios3.3438.47
Add New /wp-admin/post-new.php?post_type=portfolios3.4458.37
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolios3.2937.99

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nextlevel Portfolio Custom Post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.17 ▼0.121.77 ▼0.2746.25 ▲2.55
Dashboard /wp-admin2,226 ▲495.63 ▲0.02103.00 ▲10.1345.49 ▲1.62
Posts /wp-admin/edit.php2,131 ▲312.03 ▼0.1035.42 ▼3.8635.32 ▼2.20
Add New Post /wp-admin/post-new.php1,562 ▲3623.31 ▲0.17674.54 ▼2.5978.25 ▲12.79
Media Library /wp-admin/upload.php1,428 ▲284.17 ▼0.04101.28 ▼11.6345.66 ▼1.58
Portfolios /wp-admin/edit.php?post_type=portfolios1,1431.9734.8531.06
Add New /wp-admin/post-new.php?post_type=portfolios2,6727.87174.9674.14
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolios1,3052.1225.1530.05

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
3 plugin tags: portfolio, nextlevel, custom post

nextlevel-portfolio-custom-post/npcp-cutom-post.php 92% from 13 tests

The main file in "Nextlevel Portfolio Custom Post" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nextlevel-portfolio-custom-post.php" instead of "npcp-cutom-post.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin149 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36544149

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin