78% about-post-type

Code Review | About US Post Type

WordPress plugin About US Post Type scored78%from 54 tests.

About plugin

  • Plugin page: about-post-type
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Jan 23, 2017
  • Latest release: Jan 23, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,005 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by About US Post Type
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.87 ▼3.13
Dashboard /wp-admin3.38 ▲0.0353.26 ▼7.87
Posts /wp-admin/edit.php3.49 ▲0.1449.77 ▲2.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.31 ▲0.68
Media Library /wp-admin/upload.php3.28 ▲0.0533.48 ▼1.20
All About US /wp-admin/edit.php?post_type=about_post_type3.3536.26
Add New /wp-admin/post-new.php?post_type=about_post_type3.4046.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for About US Post Type
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,092 ▲34615.46 ▲1.157.35 ▲5.2855.31 ▲14.35
Dashboard /wp-admin2,374 ▲1866.43 ▲1.54125.06 ▲20.1191.17 ▲45.96
Posts /wp-admin/edit.php2,298 ▲2093.48 ▲1.4345.93 ▲9.3775.17 ▲41.92
Add New Post /wp-admin/post-new.php1,707 ▲17422.26 ▼0.97637.89 ▲17.2736.62 ▼20.68
Media Library /wp-admin/upload.php1,437 ▲554.15 ▼0.0179.42 ▼20.1180.48 ▲40.28
All About US /wp-admin/edit.php?post_type=about_post_type1,2793.3843.1562.00
Add New /wp-admin/post-new.php?post_type=about_post_type2,1797.58163.55126.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/about-post-type/inc/thumbnails.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-post-type/inc/front-end.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/inc/class-about-post-type.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/about-post-type.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=about_post_type
    • > Network (severe)
    wp-content/plugins/about-post-type//js/admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Admin Panel view of submitted form data.)
You can take inspiration from this readme.txt

about-post-type/about-post-type.php Passed 13 tests

The principal PHP file in "About US Post Type" v. 1.0 is loaded by WordPress automatically on each request
40 characters long description:
Simple WordPress About Post Type Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin337 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS2331186
PHP46834151

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.58KB1.43KB▼ 9.69%
screenshot-2.png12.53KB6.80KB▼ 45.73%
images/find-img.png28.58KB10.85KB▼ 62.03%
images/remove.png1.80KB1.48KB▼ 17.60%
screenshot-1.png133.27KB40.96KB▼ 69.26%