88% wp-intelligist

Code Review | WP Intelligist

WordPress plugin WP Intelligist scored 88% from 54 tests.

About plugin

  • Plugin page: wp-intelligist
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.3
  • WordPress version: 5.9.2
  • First release: May 16, 2012
  • Latest release: May 16, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: nimeshrmr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 616 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼309.10ms] Passed 4 tests

A check of server-side resources used by WP Intelligist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.08 ▼0.4318.82 ▼32.90
Dashboard /wp-admin3.29 ▼0.1227.47 ▼5.59
Posts /wp-admin/edit.php3.24 ▼0.4022.06 ▼15.47
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.96 ▼1,182.43
Media Library /wp-admin/upload.php3.30 ▲0.0022.89 ▼0.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Intelligist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.80 ▼0.146.01 ▼0.321.96 ▼0.64
Dashboard /wp-admin2,888 ▲276.13 ▼0.16115.64 ▼16.12154.45 ▼9.95
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0063.32 ▼2.70138.98 ▼6.74
Add New Post /wp-admin/post-new.php1,661 ▲116.76 ▼4.44394.35 ▼20.61153.90 ▼3.40
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.03135.69 ▲0.31188.27 ▲2.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-intelligist/git_form.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-intelligist/wp-intelligist.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-intelligist === )
You can take inspiration from this readme.txt

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

The main PHP file in "WP Intelligist" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
Embed codes from github directly into your blog posts or pages using jquery-intelligist and chosen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin754 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS22620438
PHP25231122
JavaScript43948113
Markdown345081

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png16.19KB8.47KB▼ 47.67%
chosen/chosen-sprite.png0.55KB0.70KB0.00%
screenshot-1.png61.93KB26.88KB▼ 56.60%