88% np-team

Code Review | NP Team

WordPress plugin NP Team scored 88% from 54 tests.

About plugin

  • Plugin page: np-team
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.8.1
  • First release: Aug 1, 2016
  • Latest release: Aug 1, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: golamahmed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 421 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼139.86ms] Passed 4 tests

Server-side resources used by NP Team
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0644.58 ▲7.19
Dashboard /wp-admin3.13 ▲0.0747.32 ▼1.61
Posts /wp-admin/edit.php3.18 ▲0.0749.42 ▲3.42
Add New Post /wp-admin/post-new.php5.48 ▲0.0599.16 ▼558.75
Media Library /wp-admin/upload.php3.07 ▲0.0731.82 ▼2.50
Team Member /wp-admin/edit.php?post_type=npteam3.1143.09
Add New Member /wp-admin/post-new.php?post_type=npteam3.2051.99
Custom Options /wp-admin/edit.php?post_type=npteam&page=npteam_member-settings3.0428.49

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for NP Team
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,862 ▲26616.46 ▲0.4614.87 ▲5.0448.49 ▼4.89
Dashboard /wp-admin3,036 ▲996.72 ▲0.81135.29 ▼19.77128.66 ▲11.83
Posts /wp-admin/edit.php2,813 ▲742.75 ▲0.0669.60 ▲1.97115.70 ▲15.84
Add New Post /wp-admin/post-new.php1,733 ▲5018.45 ▲2.14363.72 ▼29.60122.18 ▲10.06
Media Library /wp-admin/upload.php1,820 ▲105.17 ▲0.16139.88 ▼20.68118.27 ▼8.93
Team Member /wp-admin/edit.php?post_type=npteam1,5062.6767.1989.61
Add New Member /wp-admin/post-new.php?post_type=npteam3,3419.33246.42158.13
Custom Options /wp-admin/edit.php?post_type=npteam&page=npteam_member-settings1,2602.6961.1975.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/np-team/np-team.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=npteam&page=npteam_member-settings
    • > Network (severe)
    wp-content/plugins/np-team/js/color-pickr.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (In this screenshot, you can see "add new member" page. Here you can your team member and his details.), #2 (In this screenshot, you can see the list of added members.), #3 (In this screenshot, you can see the "team shortcode icon". To show members on a page, you have to click on this button and add the shortcode.), #4 (In this screenshot, you can see the preview after clicking on the "team shortcode icon". Here you can manage how much member of your team you want to show on this particular page.), #5 (In this screenshot, you can see the shortcode of "NP-Team plugin".), #6 (In this screenshot, you can see the options panel of this plugin. Here you can put your properties.), #7 (In this screenshot, you can see the live demo still image of this plugin.)
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

np-team/np-team.php 92% from 13 tests

The main file in "NP Team" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 239 characters long)

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
Everything looks great! No dangerous files found in this plugin310 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15936250
CSS20634
JavaScript22026

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.45MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.PNG59.50KB26.40KB▼ 55.63%
screenshot-2.PNG51.89KB24.10KB▼ 53.56%
screenshot-5.PNG57.73KB25.35KB▼ 56.09%
img/team_icon.png3.99KB3.35KB▼ 16.15%
screenshot-1.PNG51.46KB20.87KB▼ 59.45%