68% ngcareers

Code Review | Ngcareers

WordPress plugin Ngcareers scored 68% from 54 tests.

About plugin

  • Plugin page: ngcareers
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2015
  • Latest release: Dec 10, 2015
  • Number of updates: 27
  • Update frequency: every 4.2 days
  • Top authors: andychukse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,213 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.01MB] [CPU: ▼39.63ms] Passed 4 tests

This is a short check of server-side resources used by Ngcareers
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6315.49 ▼28.45
Dashboard /wp-admin3.05 ▼0.2623.47 ▼26.72
Posts /wp-admin/edit.php3.05 ▼0.3123.67 ▼20.35
Add New Post /wp-admin/post-new.php3.05 ▼2.8422.55 ▼82.98
Media Library /wp-admin/upload.php3.05 ▼0.1820.92 ▼13.75
Ngcareers /wp-admin/options-general.php?page=ngcareers-admin3.0524.17

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
ngcareers_settings
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Ngcareers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.53 ▼0.841.64 ▼0.2441.56 ▼12.93
Dashboard /wp-admin2,210 ▲225.90 ▲0.97109.36 ▼6.2439.54 ▼8.01
Posts /wp-admin/edit.php2,096 ▲72.00 ▲0.0139.06 ▼1.7936.09 ▲0.79
Add New Post /wp-admin/post-new.php1,517 ▼2717.78 ▼0.30649.77 ▲35.0756.26 ▲4.71
Media Library /wp-admin/upload.php1,395 ▲104.21 ▲0.0097.70 ▼3.9642.81 ▼1.00
Ngcareers /wp-admin/options-general.php?page=ngcareers-admin1,2152.2024.0026.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ngcareers-admin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=ngcareers-admin
    • > Notice in wp-content/plugins/ngcareers/ngcareers.php+201
    Undefined index: ngcareers_public_key

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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: ngcareersslug in wp-content/plugins/ngcareers/ngcareers-job.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ngcareers_joblist() in wp-content/plugins/ngcareers/ngcareers-job.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ngcareers/ngcareers-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ngcareers/ngcareers.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: jobs in nigeria, career, jobs, nigeria, job board

ngcareers/ngcareers.php 92% from 13 tests

"Ngcareers" version 1.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected459 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP310013422
CSS13137

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.95MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png7.77KB3.64KB▼ 53.18%
assets/screenshot-2.png125.05KB36.72KB▼ 70.63%
assets/screenshot-1.png103.74KB32.01KB▼ 69.15%
assets/plugin-ngcareers.png3.73KB3.39KB▼ 9.14%
assets/plugin-brand.png4.10KB3.55KB▼ 13.37%