93% ipsuite-latest-topics

Code Review | IP.Suite ( IP.Board 4 ) Latest Topics in Wordpress

WordPress plugin IP.Suite ( IP.Board 4 ) Latest Topics in Wordpress scored 93% from 54 tests.

About plugin

  • Plugin page: ipsuite-latest-to...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Sep 22, 2015
  • Latest release: Sep 23, 2015
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: Taha Shieenavaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 710 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.03MB] [CPU: ▼144.52ms] Passed 4 tests

A check of server-side resources used by IP.Suite ( IP.Board 4 ) Latest Topics in Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.62 ▼0.1026.07 ▲5.29
Dashboard /wp-admin3.11 ▲0.0544.67 ▲1.80
Posts /wp-admin/edit.php2.99 ▼0.1229.51 ▼11.60
Add New Post /wp-admin/post-new.php5.46 ▲0.0388.31 ▼565.17
Media Library /wp-admin/upload.php3.05 ▲0.0528.54 ▼3.12

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for IP.Suite ( IP.Board 4 ) Latest Topics in Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12415.89 ▲0.238.15 ▼0.2946.79 ▼2.64
Dashboard /wp-admin3,007 ▲735.91 ▼0.21139.26 ▲3.09107.77 ▼11.52
Posts /wp-admin/edit.php2,754 ▲182.69 ▲0.0162.70 ▼5.3083.70 ▼7.78
Add New Post /wp-admin/post-new.php1,682 ▼118.98 ▲0.01368.51 ▲14.52106.49 ▼14.46
Media Library /wp-admin/upload.php1,822 ▲125.03 ▲0.00159.27 ▲6.90114.90 ▼4.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 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/ipsuite-latest-topics/IPSLatest.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Please add at least on tag
  • Screenshots: Please add an image for screenshot #1 (A View of Plugin Working in Twentythirteen Theme)
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

ipsuite-latest-topics/IPSLatest.php 92% from 13 tests

The main PHP script in "IP.Suite ( IP.Board 4 ) Latest Topics in Wordpress" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ipsuite-latest-topics.php" instead of "IPSLatest.php")

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
Good job! No executable or dangerous file extensions detected181 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1314181

PHP code Passed 2 tests

Analyzing 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.20
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin