84% nodeifywp

Code Review | NodeifyWP

WordPress plugin NodeifyWP scored84%from 54 tests.

About plugin

  • Plugin page: nodeifywp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2016
  • Latest release: Dec 29, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tlovett1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.45ms] Passed 4 tests

An overview of server-side resources used by NodeifyWP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.73 ▲2.02
Dashboard /wp-admin3.36 ▲0.0552.34 ▼0.48
Posts /wp-admin/edit.php3.41 ▲0.0553.37 ▼7.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.54 ▼24.29
Media Library /wp-admin/upload.php3.28 ▲0.0543.65 ▲6.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by NodeifyWP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.63 ▲0.041.80 ▼0.0044.88 ▲1.50
Dashboard /wp-admin2,195 ▲155.54 ▼0.0589.58 ▲0.1440.35 ▼0.23
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0039.41 ▲0.8337.21 ▲3.19
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.41695.03 ▲56.5160.80 ▲12.46
Media Library /wp-admin/upload.php1,394 ▼34.21 ▼0.0395.21 ▼13.5444.25 ▼4.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/nodeifywp/API.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'NodeifyWP\\App' not found in wp-content/plugins/nodeifywp/standard-tags.php:9

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 is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: redux, react, javascript, nodejs, node...

nodeifywp/App.php 92% from 13 tests

The main file in "NodeifyWP" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("nodeifywp.php" instead of "App.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin688 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5155348541
Markdown1610147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity25.75
▷ Minimum class complexity7.00
▷ Maximum class complexity49.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods2868.29%
▷ Protected methods00.00%
▷ Private methods1331.71%
Functions12
▷ Named functions00.00%
▷ Anonymous functions12100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin