84% nix-prefix

Code Review | Nix Prefix

WordPress plugin Nix Prefix scored84%from 54 tests.

About plugin

  • Plugin page: nix-prefix
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: May 7, 2019
  • Number of updates: 11
  • Update frequency: every 108.1 days
  • Top authors: tinkerbelly (81.82%)deployer (27.27%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,322 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.01MB] [CPU: ▼5.52ms] Passed 4 tests

A check of server-side resources used by Nix Prefix
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.78 ▼6.30
Dashboard /wp-admin3.31 ▲0.0149.30 ▼7.71
Posts /wp-admin/edit.php3.36 ▲0.0146.49 ▼1.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.27 ▼6.50
Media Library /wp-admin/upload.php3.23 ▲0.0136.84 ▲0.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Nix Prefix
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.38 ▲0.101.64 ▼0.1845.12 ▼2.22
Dashboard /wp-admin2,198 ▲185.58 ▼0.0986.44 ▼5.4040.90 ▼5.18
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0436.20 ▲1.9035.98 ▼1.36
Add New Post /wp-admin/post-new.php1,543 ▲1722.79 ▼0.58684.55 ▼1.8756.20 ▼4.99
Media Library /wp-admin/upload.php1,397 ▼64.18 ▼0.0197.56 ▼19.6244.16 ▼2.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nix-prefix/nix-prefix.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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: archives, tag, text, page, category...

nix-prefix/nix-prefix.php 92% from 13 tests

The principal PHP file in "Nix Prefix" v. 0.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected17 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP162514
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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