94% mijnpress-hightraffic

Code Review | MijnPress high traffic

WordPress plugin MijnPress high traffic scored 94% from 54 tests.

About plugin

  • Plugin page: mijnpress-hightra...
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 5.9.2
  • First release: Jul 4, 2015
  • Latest release: Nov 22, 2021
  • Number of updates: 9
  • Update frequency: every 259.5 days
  • Top authors: ramon fincken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 929 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by MijnPress high traffic
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0159.49 ▼0.33
Dashboard /wp-admin3.42 ▲0.0134.31 ▼0.50
Posts /wp-admin/edit.php3.65 ▲0.0143.93 ▲1.40
Add New Post /wp-admin/post-new.php6.89 ▼0.08180.25 ▼1,123.88
Media Library /wp-admin/upload.php3.30 ▲0.0131.05 ▲3.61

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

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

Browser metrics Passed 4 tests

A check of browser resources used by MijnPress high traffic
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲4115.82 ▲0.136.79 ▲0.122.37 ▲0.23
Dashboard /wp-admin2,888 ▲346.00 ▼0.22132.20 ▼2.58172.86 ▲7.40
Posts /wp-admin/edit.php2,657 ▼313.23 ▲0.0066.30 ▲2.07142.49 ▼0.43
Add New Post /wp-admin/post-new.php1,781 ▲12021.90 ▲6.07423.18 ▼4.65161.11 ▼45.45
Media Library /wp-admin/upload.php1,695 ▼35.55 ▲0.02147.71 ▲13.80205.66 ▲10.28

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mijnpress-hightraffic/mijnpress_hightraffic.php

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: mijnpress, high, traffic

mijnpress-hightraffic/mijnpress_hightraffic.php 92% from 13 tests

This is the main PHP file of "MijnPress high traffic" version 0.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mijnpress-hightraffic.php" instead of "mijnpress_hightraffic.php")

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
Success! There were no dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin