10% neeed

Code Review | Neeed

WordPress plugin Neeed scored10%from 54 tests.

About plugin

  • Plugin page: neeed
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.4
  • WordPress version: 6.3.1
  • First release: Mar 9, 2014
  • Latest release: Nov 23, 2015
  • Number of updates: 26
  • Update frequency: every 24.0 days
  • Top authors: 56k (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,453 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/neeed/neeed.php+226
    Methods with the same name as their class will not be constructors in a future version of PHP; neeedwidget has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼57.81ms] Passed 4 tests

Analyzing server-side resources used by Neeed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.82 ▼38.12
Dashboard /wp-admin2.16 ▼1.146.76 ▼41.02
Posts /wp-admin/edit.php2.16 ▼1.206.27 ▼53.43
Add New Post /wp-admin/post-new.php2.16 ▼3.736.86 ▼98.65
Media Library /wp-admin/upload.php2.16 ▼1.075.89 ▼27.86

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Neeed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲11213.24 ▼1.054.76 ▲2.9442.95 ▼6.83
Dashboard /wp-admin2,221 ▲365.84 ▲0.96100.50 ▼5.8839.27 ▼2.71
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0038.05 ▼3.5433.70 ▼4.78
Add New Post /wp-admin/post-new.php1,562 ▲2518.20 ▼0.24711.84 ▲72.6361.52 ▲8.79
Media Library /wp-admin/upload.php1,406 ▲184.23 ▲0.0194.61 ▼8.3541.46 ▼4.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/neeed/neeed.php+226
    Methods with the same name as their class will not be constructors in a future version of PHP; neeedwidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_neeedwidget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: neeed_hidden in wp-content/plugins/neeed/neeed_admin.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/neeed/neeed_admin.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neeed/neeed.php:21

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 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: "[56k](http://56k.be/)"
The official readme.txt is a good inspiration

neeed/neeed.php 92% from 13 tests

The primary PHP file in "Neeed" version 1.1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 328 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin441 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP222921304
CSS1274137

PHP code Passed 2 tests

An overview of 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.17
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png2.92KB1.38KB▼ 52.87%