78% round-top-post

Code Review | Round Top Post

WordPress plugin Round Top Post scored78%from 54 tests.

About plugin

  • Plugin page: round-top-post
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.7
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Nov 2, 2013
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: osmansorkar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /866 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.44ms] Passed 4 tests

Server-side resources used by Round Top Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.49 ▼8.80
Dashboard /wp-admin3.33 ▲0.0246.68 ▼1.89
Posts /wp-admin/edit.php3.38 ▲0.0247.72 ▼0.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.91 ▲1.50
Media Library /wp-admin/upload.php3.25 ▲0.0239.45 ▲3.46
Round Top Post /wp-admin/options-general.php?page=round_top_post3.1927.47

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Round Top Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.56 ▼0.811.84 ▼0.0341.30 ▼0.63
Dashboard /wp-admin2,210 ▲225.84 ▲0.97109.43 ▼8.1541.45 ▼3.16
Posts /wp-admin/edit.php2,093 ▲222.05 ▲0.0240.25 ▲4.1534.77 ▼0.14
Add New Post /wp-admin/post-new.php1,545 ▲718.13 ▼4.94634.16 ▼48.2453.00 ▲1.83
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.05108.37 ▼0.2546.33 ▼2.85
Round Top Post /wp-admin/options-general.php?page=round_top_post7982.0624.3426.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=round_top_post
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=round_top_post
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/round-top-post/round-top-post.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: popular post, view recent popular post, recent, post, recent popular post...

round-top-post/round-top-post.php 92% from 13 tests

Analyzing the main PHP file in "Round Top Post" version 0.01
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 198 characters long)

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
No dangerous file extensions were detected159 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13221159

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin