10% wp-adposts

Code Review | WP AdPosts by Kader Bouyakoub

WordPress plugin WP AdPosts by Kader Bouyakoub scored 10% from 54 tests.

About plugin

  • Plugin page: wp-adposts
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.4
  • WordPress version: 5.8.1
  • First release: Mar 5, 2018
  • Latest release: Mar 6, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: bkader (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 377 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method Ianhub_WP_AdPosts::activate() should not be called statically

Server metrics [RAM: ▼0.05MB] [CPU: ▼145.13ms] Passed 4 tests

Server-side resources used by WP AdPosts by Kader Bouyakoub
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.00 ▼0.728.09 ▼13.76
Dashboard /wp-admin3.24 ▲0.1851.23 ▲3.28
Posts /wp-admin/edit.php3.35 ▲0.2447.20 ▲2.72
Add New Post /wp-admin/post-new.php5.60 ▲0.1693.39 ▼570.68
Media Library /wp-admin/upload.php3.18 ▲0.1837.85 ▲1.21
All Ads /wp-admin/edit.php?post_type=wpap_ad3.2232.88
Add /wp-admin/post-new.php?post_type=wpap_ad3.2847.97
Locations /wp-admin/edit-tags.php?taxonomy=wpap_location&post_type=wpap_ad3.1832.26
WP AdPosts /wp-admin/options-general.php?page=wp-adposts3.1532.95

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options
wp_adposts_sizes

Browser metrics Passed 4 tests

An overview of browser requirements for WP AdPosts by Kader Bouyakoub
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,873 ▲27715.83 ▲0.2812.61 ▲5.9356.57 ▲1.42
Dashboard /wp-admin3,014 ▲805.89 ▲0.00144.03 ▼12.82108.46 ▼19.65
Posts /wp-admin/edit.php2,780 ▲412.70 ▲0.0267.95 ▼0.2995.70 ▲5.21
Add New Post /wp-admin/post-new.php1,709 ▲2618.76 ▲0.02387.68 ▲1.35108.20 ▼11.77
Media Library /wp-admin/upload.php1,848 ▲415.05 ▲0.03163.90 ▲2.19123.83 ▼5.27
All Ads /wp-admin/edit.php?post_type=wpap_ad1,5062.6373.4082.07
Add /wp-admin/post-new.php?post_type=wpap_ad3,0188.88221.86150.31
Locations /wp-admin/edit-tags.php?taxonomy=wpap_location&post_type=wpap_ad1,8042.5167.5684.47
WP AdPosts /wp-admin/options-general.php?page=wp-adposts1,2412.0966.7181.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method Ianhub_WP_AdPosts::deactivate() should not be called statically

Smoke tests 75% 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 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-adposts/wp-adposts.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (After activation, you will see the plugin menu item on your dashboard.)
Please take inspiration from this readme.txt

wp-adposts/wp-adposts.php 92% from 13 tests

The main file in "WP AdPosts by Kader Bouyakoub" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 195 characters long)

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
No dangerous file extensions were detected1,604 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP3175706710
Markdown21360566
Sass12014125
CSS2179101
PO File1223980
JavaScript251822

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity77.00
▷ Minimum class complexity77.00
▷ Maximum class complexity77.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin