84% apostle-social-wall

Code Review | Apostle Social Wall

WordPress plugin Apostle Social Wall scored84%from 54 tests.

About plugin

  • Plugin page: apostle-social-wall
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 30, 2018
  • Latest release: Mar 5, 2019
  • Number of updates: 9
  • Update frequency: every 14.0 days
  • Top authors: peprojects (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Apostle Social Wall
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.53 ▲1.93
Dashboard /wp-admin3.34 ▼0.0043.42 ▼16.34
Posts /wp-admin/edit.php3.39 ▲0.0342.67 ▼0.19
Add New Post /wp-admin/post-new.php5.94 ▲0.0680.95 ▼11.52
Media Library /wp-admin/upload.php3.26 ▲0.0332.16 ▼4.11
Add New Feed /wp-admin/post-new.php?post_type=social_wall3.3041.42
All Feeds /wp-admin/edit.php?post_type=social_wall3.3037.27

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Apostle Social Wall
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲15013.73 ▼0.627.65 ▲5.6740.38 ▼0.27
Dashboard /wp-admin2,234 ▲455.84 ▲0.9396.97 ▼8.8639.12 ▼5.55
Posts /wp-admin/edit.php2,117 ▲312.14 ▲0.0935.42 ▲0.1534.13 ▲1.34
Add New Post /wp-admin/post-new.php1,541 ▲2022.81 ▼0.47624.45 ▼53.8850.24 ▼8.92
Media Library /wp-admin/upload.php1,413 ▲254.24 ▲0.01105.15 ▼1.5740.88 ▼8.52
Add New Feed /wp-admin/post-new.php?post_type=social_wall1,4982.6651.7371.05
All Feeds /wp-admin/edit.php?post_type=social_wall1,1012.0029.9930.69

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/apostle-social-wall/admin/partials/apostle-social-wall-admin-display.php
    • > /wp-content/plugins/apostle-social-wall/public/partials/apostle-social-wall-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
2 plugin tags: comments, spam

apostle-social-wall/apostle-social-wall.php Passed 13 tests

"Apostle Social Wall" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Apostle Social Wall is a great plugin for adding the apostle connect social wall to your website.

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 detected547 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12128564288
CSS208245
JavaScript365414

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.34MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/blog_default.png347.76KB168.21KB▼ 51.63%