90% bbpress-loadmore-topics

Code Review | bbPress load more topics

WordPress plugin bbPress load more topics scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-loadmore-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Feb 8, 2015
  • Number of updates: 14
  • Update frequency: every 39.7 days
  • Top authors: ckchaudhary (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,050 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by bbPress load more topics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.71 ▲0.97
Dashboard /wp-admin3.33 ▲0.0351.32 ▼1.87
Posts /wp-admin/edit.php3.38 ▲0.0351.33 ▲4.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.60 ▼1.93
Media Library /wp-admin/upload.php3.25 ▲0.0237.82 ▼0.60

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress load more topics
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲11314.00 ▼0.388.77 ▲6.8244.16 ▲0.27
Dashboard /wp-admin2,206 ▲185.91 ▲0.1095.99 ▼7.9138.37 ▲1.10
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0339.24 ▲2.6636.85 ▲3.06
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▼0.15602.01 ▼67.9052.19 ▼7.55
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.11104.35 ▼16.3247.22 ▼3.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: bbpress loadmore, bbpress load more, bbpress

bbpress-loadmore-topics/index.php 92% from 13 tests

This is the main PHP file of "bbPress load more topics" version 1.1, 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 ("bbpress-loadmore-topics.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin172 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13929133
JavaScript19139

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected