90% wp-nice-loader

Code Review | WP Nice Loader

WordPress plugin WP Nice Loader scored90%from 54 tests.

About plugin

  • Plugin page: wp-nice-loader
  • Plugin version: 0.1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2016
  • Latest release: Jul 29, 2023
  • Number of updates: 27
  • Update frequency: every 95.0 days
  • Top authors: vol4ikman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,937 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.29ms] Passed 4 tests

Server-side resources used by WP Nice Loader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.63 ▲0.40
Dashboard /wp-admin3.33 ▲0.0252.99 ▼1.71
Posts /wp-admin/edit.php3.38 ▲0.0248.54 ▼0.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.77 ▼7.36
Media Library /wp-admin/upload.php3.25 ▲0.0238.48 ▲3.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Nice Loader
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.65 ▼0.736.51 ▲4.8146.13 ▲3.69
Dashboard /wp-admin2,231 ▲574.90 ▲0.04112.15 ▼1.9539.02 ▼0.19
Posts /wp-admin/edit.php2,111 ▲222.08 ▲0.1041.18 ▲0.6731.49 ▼8.75
Add New Post /wp-admin/post-new.php1,528 ▲923.12 ▼0.04647.91 ▼55.3398.22 ▼3.66
Media Library /wp-admin/upload.php1,413 ▲284.28 ▲0.05104.77 ▼1.6041.33 ▼8.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

wp-nice-loader/wp-nice-loader.php Passed 13 tests

The main PHP file in "WP Nice Loader" ver. 0.1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Nice page loader, with full user controls about themes, timing, and pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,165 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS17543789
PHP38632352
JavaScript32924

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin