90% wp-lever

Code Review | WP Lever

WordPress plugin WP Lever scored90%from 54 tests.

About plugin

  • Plugin page: wp-lever
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Oct 2, 2018
  • Latest release: Oct 2, 2018
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: obiplabon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,071 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.63ms] Passed 4 tests

An overview of server-side resources used by WP Lever
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.42 ▼1.84
Dashboard /wp-admin3.32 ▼0.0245.68 ▼15.36
Posts /wp-admin/edit.php3.37 ▲0.0244.97 ▼3.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.39 ▼5.34
Media Library /wp-admin/upload.php3.24 ▲0.0234.83 ▲1.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Lever
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.39 ▲0.041.68 ▼0.0440.75 ▼1.90
Dashboard /wp-admin2,192 ▲115.51 ▼0.2084.34 ▼13.6734.76 ▼8.45
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0432.87 ▼7.8034.99 ▲0.06
Add New Post /wp-admin/post-new.php1,540 ▲1418.46 ▼4.48630.39 ▼50.6664.78 ▲10.87
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0496.75 ▲1.3642.61 ▲1.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: job-listing, wp-lever, leverco

wp-lever/wp-lever.php Passed 13 tests

The main file in "WP Lever" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Shortcode for Lever.co api. Super easily show job listing from lever.co

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
There were no executable files found in this plugin139 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22473105
CSS14034

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods228.57%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin